package com.ncbee.base.config.shiro.aop;

import org.apache.shiro.spring.aop.SpringAnnotationResolver;
import org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor;

/**
 * @Author fengzirong
 * @DESC
 * @Date 2018/12/13 13:06
 **/
public class ExtAuthorizationAopInterceptor extends AopAllianceAnnotationsAuthorizingMethodInterceptor {

    public ExtAuthorizationAopInterceptor() {
        super();
        // 添加自定义的注解拦截器
        this.methodInterceptors.add(new ExtPermissionAnnotationMethodInterceptor(new SpringAnnotationResolver()));
    }

}
